{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {
    "collapsed": true
   },
   "source": [
    "# Sigmoid函数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import matplotlib.pyplot as plt"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 绘制Sigmoid函数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "def sigmoid(t):\n",
    "    return 1/(1 + np.exp(-t))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAD8CAYAAACMwORRAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4xLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvAOZPmwAAIABJREFUeJzt3Xt8VPWd//HXJxcSIIQ74Q4qqOCdRBC1FcRSsK24u9TitrbWunTdtZdff/11td2f29rd36/d7uW3Pmrbta2rdW1RW22ppYVKQ7ValasoRCRCIOGSAEEghFxm5vP7YyY6prlMkpmcmcn7+XjMI+fyPWfeOXPymZPvnDnH3B0REckuOUEHEBGR5FNxFxHJQiruIiJZSMVdRCQLqbiLiGQhFXcRkSyk4i4ikoVU3EVEspCKu4hIFsoL6onHjBnj06dP79Wyp0+fZujQockNlATK1TPK1XPpmk25eqYvuTZv3nzU3cd229DdA3mUlpZ6b5WXl/d62VRSrp5Rrp5L12zK1TN9yQVs8gRqrLplRESykIq7iEgWUnEXEclCKu4iIllIxV1EJAt1W9zN7EEzqzOz1zqZb2Z2n5lVmtl2M5uT/JgiItITiRy5PwQs6WL+UmBm7LES+G7fY4mISF90+yUmd3/WzKZ30WQZ8KPY+ZcvmtkIM5vg7oeSlFFEslQ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PdGzMd7sp1yVRPsVt8Ue32ufqz+3V0e/P3Av0TcfgMLYvlMZ25fO7odtdDXR7rTtcdvpeuCv2/Yz4M7YtnmF6AfTV/ZDrg5fl3a5DLg/tj1fJe4stxRnG0q0WA+PmxbI9iL6BnMIaI3Vr08R/ZxmPbAbeAYYFWtbBvwgbtnbYvtaJfDJvmbRN1RFRLJQJnbLiIhIN1TcRUSykIq7iEgWUnEXEclCKu4iIllIxV1EJAupuIuIZCEVdxGRLPT/AWDnkQWjIdEtAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x1064b7978>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "x = np.linspace(-10,10,500)\n",
    "y = sigmoid(x)\n",
    "plt.plot(x,y)\n",
    "plt.grid(True)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
